import Vue from 'vue'
import App from './App'
import common from './common/lib/common.js'
import store from './store'
import * as utils from './utils'
import * as types from './store/types'
import api from '@/api'

Vue.config.productionTip = false

App.mpType = 'app'

Vue.prototype.$common = common
Vue.prototype.$store = store
Vue.prototype.$showToast = utils.showToast
Vue.prototype.$show = utils.show
Vue.prototype.$showModal = utils.showModal
Vue.prototype.$hide = utils.hide
Vue.prototype.$utils = utils
Vue.prototype.$types = types
Vue.prototype.$api = api

const app = new Vue({
    store,
    ...App
})
app.$mount()
